// const USER = "USER";

import user from "@/pages/User/User";

let defaultCity = '北京'
let defaultArticleId = 1
const USER = "USER";

try {
    if (localStorage.city) {
        defaultCity = localStorage.city
    }
} catch (e) {
}
try {
    if (localStorage.articleId) {
        defaultArticleId = localStorage.articleId
    }
} catch (e) {
}

export default {
    user: SessionStorage.get(USER) || {},
    city: defaultCity,
    articleId: defaultArticleId
}
